package com.huarui.saleOrder.action;

import java.util.HashMap;
import java.util.Map;

import org.ewaf.framework.action.BaseAction;

import com.huarui.params.Params;
import com.huarui.purchaseOrder.model.PurOrSaleOrder;
import com.huarui.saleOrder.enums.SaleOrderFunctionEnum;

/**
 * 
 * @author ycf
 *
 */
public class SaleOrderNewAction extends BaseAction{

	public static final String MESS = "mess";
	
	private static final long serialVersionUID = 8184645879843540417L;
	
	private Map<String, Object> mesMap = new HashMap<String, Object>();

	public Map<String, Object> getMesMap() {
		return mesMap;
	}

	public void setMesMap(Map<String, Object> mesMap) {
		this.mesMap = mesMap;
	}
	
	/**
	 * 准备新建
	 * @return
	 */
	public String toCreate() {
		mesMap.put(Params.PUR_ORDER_STATUS_PARAM, PurOrSaleOrder.STATUS_INITIAL);
		mesMap.put(Params.PUR_LOADED_MESS_KEYS, SaleOrderFunctionEnum.LOAD_BUTTONS_TOOL_BAR.getKey());
		return MESS;
	}

}
